<template>
  <div class="more">
    <mt-header title="更多壁纸" fixed>
        <router-link to="/" slot="left">
            <mt-button icon="back"></mt-button>
        </router-link>
        </mt-header>
       <div class="photo_items">
           <router-link :to="{name:'PhotoInfo',params:{photo_url:item.preview}}" tag="div" class="photo_item" v-for="(item,index) in imgaes_list" :key="index">
          <img v-lazy="item.preview" alt="">
      </router-link>
      </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgaes_list:[]
    }
  },
  mounted(){
        
       var url='https://service.picasso.adesk.com/v1/vertical/vertical?limit=100'
        this.$axios.get(url)
        .then(res=>{
            // console.log(res.data.res.vertical);
            this.imgaes_list=res.data.res.vertical
        })
    }
}
</script>

<style scoped>
.mint-header{
        background: #2a496d;
    }
  .photo_items{
    margin-top: 40px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .photo_item img{
        width: 170px;
        height: 300px;
        border-radius: 5px;
        margin-bottom: 5px;
    }
</style>